package com.portal.common.utils;

/**
 * 返回16-18位雪花算法长整数
 *
 * @author Amadeus
 * @date 2024/04/30
 */
public class SnowFlakeShortUtil {
    /**
     * 派号器workid：0~31
     * 机房datacenterid：0~31
     */
    private static final SnowflakeIdWorker ID_WORKER = new SnowflakeIdWorker(1);

    public static Long nextId() {
        return ID_WORKER.nextId();
    }
}
